package com.webapp.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.webapp.common.AppException;
import com.webapp.common.ErrorCode;
import com.webapp.mapper.AgentUserMaxandminMapper;
import com.webapp.mapper.AgentUserSaleDetailMapper;
import com.webapp.mapper.PrdRecommProductDetailMapper;
import com.webapp.mapper.ZhuPushPointMapper;
import com.webapp.model.*;
import com.webapp.model.vo.*;
import com.webapp.service.*;
import com.webapp.service.impl.EtlSerive;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author liuxiangpeng
 * @since 2021-10-25
 */
@Slf4j
@RestController
@RequestMapping("/fixedRecommendModel")
@Api(value = "跑批", tags = {"跑批"})
public class FixedRecommendModelController {
//    @Autowired
//    PrdRecommProductDetailMapper prdRecommProductDetailMapper;
//    @Autowired
//    EtlSerive etlSerive;
//    @Autowired
//    ZhuVariableConfigService zhuVariableConfigService;
//    @Autowired
//    ZhuPushPointService zhuPushPointService;
//    @Autowired
//    AgentUserSaleDetailService agentUserSaleDetailService;
//    @Autowired
//    AgentGroupSaleDetailService agentGroupSaleDetailService;
//    @Autowired
//    GroupanduserSaleConfigService groupanduserSaleConfigService;
//    @Autowired
//    ProductSaleScoreService productSaleScoreService;//产品销售擅长分数表
//    @Autowired
//    ZhuandsaleScoreConfigService zhuandsaleScoreConfigService;//主推及销售擅长配置表
//    @Autowired
//    ProductComprehensiveScoreService productComprehensiveScoreService;
//    @Autowired
//    AgentClusterResultService agentClusterResultService;
//    @Autowired
//    AgentUserMaxandminMapper agentUserMaxandminMapper;
//    @Autowired
//    ZhuPushPointMapper zhuPushPointMapper;
//    @Autowired
//    AgentUserSaleDetailMapper agentUserSaleDetailMapper;
//
//
//    @ApiOperation(value = "跑数")
//    @PostMapping("/test1")
//    @Scheduled(cron = "0 0 1 * * ?")//每天凌晨1点执行一次
//    public RetResult test() {
//        List<PrdRecommProductDetailVo> max = prdRecommProductDetailMapper.getMax();
//        log.info(""+max);
//        ArrayList<ZhuPushPoint> zhuPushPoints = new ArrayList<>();
//        log.info("--开始计算产品综合主推分--");
//        for (PrdRecommProductDetailVo prdRecommProductDetailVo : max) {
//            prdRecommProductDetailVo.getCoverageId();
//
//
//            ZhuPushPoint zhuPushPoint = new ZhuPushPoint();
//            Long max1 = prdRecommProductDetailVo.getMax1();
//            Long min1 = prdRecommProductDetailVo.getMin1();
//            Long premiumRecent3add = prdRecommProductDetailVo.getPremiumRecent3add();
//            BigDecimal max11 = new BigDecimal(max1);
//            BigDecimal min11 = new BigDecimal(min1);
//
//            BigDecimal premiumRecent3add1 = new BigDecimal(premiumRecent3add);
//            log.info("max1--"+max11);
//            log.info("min1--"+min11);
//            log.info("x1--"+premiumRecent3add1);
//            BigDecimal baofei3=null;
//            if (max11.compareTo(premiumRecent3add1)==0){
//                baofei3=new BigDecimal(100);
//            }else if (min11.compareTo(premiumRecent3add1)==0){
//                baofei3=new BigDecimal(0);
//            }else {
//                baofei3 = etlSerive.test(max11, min11, premiumRecent3add1);//产品近3天产品保费增量情况得分
//            }
//
//            log.info("baofei3->"+baofei3);
//            zhuPushPoint.setThreePremiumIncrementScore(baofei3);
//
//            Long max2 = prdRecommProductDetailVo.getMax2();
//            Long min2 = prdRecommProductDetailVo.getMin2();
//            Long policyRecent3add = prdRecommProductDetailVo.getPolicyRecent3add();
//            BigDecimal max22 = new BigDecimal(max2);
//            BigDecimal min22 = new BigDecimal(min2);
//            BigDecimal policyRecent3add2 = new BigDecimal(policyRecent3add);
//            log.info("max2--"+max22);
//            log.info("min2--"+min22);
//            log.info("x2--"+policyRecent3add2);
//            BigDecimal xiaoshou3=null;
//            if (max22.compareTo(min22)==0){
//                xiaoshou3=new BigDecimal(100);
//            }else if (max22.compareTo(policyRecent3add2)==0){
//                xiaoshou3=new BigDecimal(100);
//            }else if (min22.compareTo(policyRecent3add2)==0){
//                xiaoshou3=baofei3=new BigDecimal(0);
//            }else {
//                xiaoshou3 = etlSerive.test(max22, min22, policyRecent3add2);//产品近3天产品保费增量情况得分
//            }
//            log.info("xiaoshou3->"+xiaoshou3);
//            zhuPushPoint.setThreeSaleIncrementScore(xiaoshou3);
//
//
//            Long max3 = prdRecommProductDetailVo.getMax3();
//            Long min3 = prdRecommProductDetailVo.getMin3();
//            BigDecimal premiumRecent7sum = prdRecommProductDetailVo.getPremiumRecent7sum();
//            BigDecimal max33 = new BigDecimal(max3);
//            BigDecimal min33 = new BigDecimal(min3);
//            log.info("max3--"+max33);
//            log.info("min3--"+min33);
//            log.info("x3--"+premiumRecent7sum);
//            BigDecimal baofei7=null;
//            if (max33.compareTo(premiumRecent7sum)==0){
//                baofei7=new BigDecimal(100);
//            }else if (min33.compareTo(premiumRecent7sum)==0){
//                baofei7=baofei3=new BigDecimal(0);
//            }else {
//                baofei7 = etlSerive.test(max33, min33, premiumRecent7sum);//产品近3天产品保费增量情况得分
//            }
//            log.info("baofei7->"+baofei7);
//
//            zhuPushPoint.setSevenPremiumIncrementScore(baofei7);
//
//            Long max4 = prdRecommProductDetailVo.getMax4();
//            Long min4 = prdRecommProductDetailVo.getMin4();
//            BigDecimal policyRecent7sum = prdRecommProductDetailVo.getPolicyRecent7sum();
//            BigDecimal max44 = new BigDecimal(max4);
//            BigDecimal min44 = new BigDecimal(min4);
//            log.info("max4--"+max44);
//            log.info("min4--"+min44);
//            log.info("x4--"+policyRecent7sum);
//            BigDecimal xiaoshou7=null;
//            if (max44.compareTo(policyRecent7sum)==0){
//                xiaoshou7=new BigDecimal(100);
//            }else if (min44.compareTo(policyRecent7sum)==0){
//                xiaoshou7=new BigDecimal(0);
//            }else {
//                xiaoshou7 = etlSerive.test(max44, min44, policyRecent7sum);//产品近3天产品保费增量情况得分
//            }
//            log.info("xiaoshou7->"+xiaoshou7);
//            zhuPushPoint.setSevenSaleIncrementScore(xiaoshou7);
//
//            String coverageId = prdRecommProductDetailVo.getCoverageId();//保障类别
//            String class1=null;
//            if (coverageId.equals("21")){
//                class1="重疾";
//            }else if (coverageId.equals("12")||coverageId.equals("41")){
//                class1="年金";
//            }else if (coverageId.equals("31")){
//                class1="意外";
//            }else if (coverageId.equals("14")||coverageId.equals("11")||coverageId.equals("13")){
//                class1="寿险";
//            }else if (coverageId.equals("22")||coverageId.equals("23")||coverageId.equals("24")||coverageId.equals("25")){
//                class1="医疗";
//            }
//
//
//
//
//            ZhuVariableConfig classConfig = zhuVariableConfigService.getOne(new QueryWrapper<ZhuVariableConfig>().eq("big_class", class1));
//            BigDecimal threePremiumIncrement = classConfig.getThreePremiumIncrement();
//            BigDecimal threeSaleIncrement = classConfig.getThreeSaleIncrement();
//            BigDecimal sevenPremiumIncrement = classConfig.getSevenPremiumIncrement();
//            BigDecimal sevenSaleIncrement = classConfig.getSevenSaleIncrement();
//
//            //这是产品综合主推分
//            BigDecimal prdzonghezhutuifen = etlSerive.prdzonghezhutuifen(baofei3, xiaoshou3, baofei7, xiaoshou7, threePremiumIncrement, threeSaleIncrement, sevenPremiumIncrement, sevenSaleIncrement);
//            zhuPushPoint.setProductCombinedScore(prdzonghezhutuifen);
//            zhuPushPoint.setProductId(prdRecommProductDetailVo.getProdId());
//            zhuPushPoint.setProductName(prdRecommProductDetailVo.getProdName());
//            zhuPushPoint.setProductBigClass(prdRecommProductDetailVo.getCoverageId());
//            zhuPushPoint.setProductState(prdRecommProductDetailVo.getProdStatus());
//            zhuPushPoint.setChannelCode(prdRecommProductDetailVo.getChannelId());
//            zhuPushPoint.setCompanyCode(prdRecommProductDetailVo.getOrgId());
//            zhuPushPoint.setGuaranteePeriod(prdRecommProductDetailVo.getCouveragePeriod());
//            zhuPushPoint.setThreePremiumIncrement(prdRecommProductDetailVo.getPremiumRecent3add());
//            zhuPushPoint.setThreeSaleIncrement(prdRecommProductDetailVo.getPolicyRecent3add());
//            zhuPushPoint.setSevenPremiumIncrement(prdRecommProductDetailVo.getPremiumRecent7sum());
//            zhuPushPoint.setSevenSaleIncrement(prdRecommProductDetailVo.getPolicyRecent7sum());
//            zhuPushPoint.setKey1(prdRecommProductDetailVo.getUid());
//            zhuPushPoints.add(zhuPushPoint);
//
//        }
//
//
//        boolean b3 = zhuPushPointService.truncatezhuPushPoint();
//
//        zhuPushPointMapper.saveBatch1(zhuPushPoints);
//
//
//
//
//
//
//
//
//        log.info("--开始计算代理人个人产品销售分--");
//        List<AgentUserMaxandmin> genrenMaxAndMin = prdRecommProductDetailMapper.getGenrenMaxAndMin();
//        agentUserMaxandminMapper.deleteAll();
//        boolean b = agentUserMaxandminMapper.saveList(genrenMaxAndMin);
//
//        List<AgentUserSaleDetailVo> getgeren = prdRecommProductDetailMapper.getgeren();
//        ArrayList<AgentUserSaleDetail> agentUserSaleDetails = new ArrayList<>();
//        for (AgentUserSaleDetailVo agentUserSaleDetailVo : getgeren) {
//            AgentUserSaleDetail agentUserSaleDetail = new AgentUserSaleDetail();
//            BigDecimal max1 = agentUserSaleDetailVo.getMax1();
//            BigDecimal min1 = agentUserSaleDetailVo.getMin1();
//            Long productSales = agentUserSaleDetailVo.getProductSales();//x
//            BigDecimal gerenxiaoshoufen=null;
//            BigDecimal x=null;
//            if (productSales==null){
//                gerenxiaoshoufen=new BigDecimal(0);
//            }else {
//                 x = new BigDecimal(productSales);
//                if (max1.compareTo(x)==0){
//                    gerenxiaoshoufen=new BigDecimal(100);
//                }else if (min1.compareTo(x)==0){
//                    gerenxiaoshoufen=new BigDecimal(0);
//                }else {
//                    gerenxiaoshoufen = etlSerive.test(max1, min1, x);//代理人个人销售分
//                }
//            }
//
//            agentUserSaleDetail.setAgentProductSaleScore(gerenxiaoshoufen);
//            agentUserSaleDetail.setAgentidAndOksaleproductid(agentUserSaleDetailVo.getUid());
//            agentUserSaleDetail.setAgentId(agentUserSaleDetailVo.getAgentCode());
//            agentUserSaleDetail.setAgentChannelCode(agentUserSaleDetailVo.getAgentCate());
//            agentUserSaleDetail.setAgentCompany(agentUserSaleDetailVo.getBranchId());
//            agentUserSaleDetail.setOksaleproductId(agentUserSaleDetailVo.getProdId());
//            agentUserSaleDetail.setOksaleproductState(agentUserSaleDetailVo.getProdStatus());
//            agentUserSaleDetail.setOksaleproductPeriod(agentUserSaleDetailVo.getCoveragePeriod());
//            agentUserSaleDetail.setProductClass(agentUserSaleDetailVo.getCoverageType());
//            agentUserSaleDetail.setUsersaleProductNumber(agentUserSaleDetailVo.getProductSales());
//
//            agentUserSaleDetails.add(agentUserSaleDetail);
//        }
//        agentUserSaleDetailService.truncateAgentUserSaleDetail();
//        if (agentUserSaleDetailMapper.saveBatch1(agentUserSaleDetails)) {
//            log.info("--代理人个人产品销售分计算结束--");
//        }
//
//
//
//
//
//
//
//
//
//        log.info("开始计算代理人所属群产品销售分");
//        List<AgentClusterResult> id1 = agentClusterResultService.list(new QueryWrapper<AgentClusterResult>().orderByDesc("string_time"));
//        Date stringTime = id1.get(0).getStringTime();
//
//        List<PrdRecommAgentProductDetailQunVo> getdailirenqunprdxiaoshoufen2 =
//                prdRecommProductDetailMapper.getdailirenqunprdxiaoshoufen(stringTime);
//        if (getdailirenqunprdxiaoshoufen2==null||getdailirenqunprdxiaoshoufen2.size()==0){
//            throw new AppException(ErrorCode.FAILED,"代理人分群结果有误");
//        }
//            ArrayList<AgentGroupSaleDetail> agentGroupSaleDetails1 = new ArrayList<>();
//            for (PrdRecommAgentProductDetailQunVo prdRecommAgentProductDetailQunVo : getdailirenqunprdxiaoshoufen2) {
//                AgentGroupSaleDetail agentGroupSaleDetail = new AgentGroupSaleDetail();
////            agentGroupSaleDetails1.add(agentGroupSaleDetail);
//                Long productSales = prdRecommAgentProductDetailQunVo.getProductSales();//这是x
//                BigDecimal bigDecimal = new BigDecimal(productSales);//把x转类型
//                BigDecimal max2 = prdRecommAgentProductDetailQunVo.getMax2();//这是最大值
//                BigDecimal min2 = prdRecommAgentProductDetailQunVo.getMin2();//这是最小值
//                BigDecimal  groupProductSaleScore=null;
//                if (max2.compareTo(bigDecimal)==0){
//                    groupProductSaleScore=new BigDecimal(100);
//                }else if (min2.compareTo(bigDecimal)==0){
//                    groupProductSaleScore=new BigDecimal(0);
//                }else if (max2.compareTo(min2)==0){
//                    groupProductSaleScore=new BigDecimal(100);
//                }else {
//                    groupProductSaleScore = etlSerive.test(max2, min2, bigDecimal);//代理人所属权本产品的销售分
//
//                }
//
//                agentGroupSaleDetail.setPerCapitaSaleproductNumber(prdRecommAgentProductDetailQunVo.getHe());
//                agentGroupSaleDetail.setAgentGroup(prdRecommAgentProductDetailQunVo.getClusterCode());
//                agentGroupSaleDetail.setProductClass(prdRecommAgentProductDetailQunVo.getCoverageType());
//                agentGroupSaleDetail.setProductState(prdRecommAgentProductDetailQunVo.getProdStatus());
//                agentGroupSaleDetail.setProductId(prdRecommAgentProductDetailQunVo.getProdId());
//                agentGroupSaleDetail.setAgentCompany(prdRecommAgentProductDetailQunVo.getBranchId());
//                agentGroupSaleDetail.setAgentChannelCode(prdRecommAgentProductDetailQunVo.getAgentCate());
//                String agentCode = prdRecommAgentProductDetailQunVo.getAgentCode();
//                Long aLong = new Long(agentCode);
//                agentGroupSaleDetail.setAgentId(aLong);
//                agentGroupSaleDetail.setAgentidAndProductid(agentCode+prdRecommAgentProductDetailQunVo.getProdId());
//                agentGroupSaleDetail.setGroupProductSaleScore(groupProductSaleScore);
//                agentGroupSaleDetails1.add(agentGroupSaleDetail);
//            }
//
//        agentGroupSaleDetailService.truncateAgentGroupSaleDetail();
//        if (agentGroupSaleDetailService.saveBatch(agentGroupSaleDetails1)) {
//            log.info("--代理人所属群近一个月销售本产品数量总和计算结束--1");
//        }
//
//
//
//
//
//
//        log.info("开始计算本产品综合销售分");
//        //本产品综合销售分= 所属群的本产品销售分*所属群销售分权重+个人本产品销售分*个人产品销售分权重
//        List<GroupanduserSaleConfig> list1 = groupanduserSaleConfigService.list();
//        if (list1.size() != 1){
//            return RetResponse.makeErrRsp("群及个人销售调节表信息有误,产品综合销售分计算失败");
//        }
//        GroupanduserSaleConfig groupanduserSaleConfig = list1.get(0);
//        BigDecimal qunxiaoshoufenQZ = groupanduserSaleConfig.getGroupProductSaleScore();//所属群销售分权重
//        BigDecimal gerenxiaoshoufenQZ = groupanduserSaleConfig.getUserProductSaleScore();//个人产品销售分权重
//
//        List<PrdzonghexiaoshoufenVo> getprdzonghexiaoshoufen = prdRecommProductDetailMapper.getprdzonghexiaoshoufen();
//        ArrayList<ProductSaleScore> productSaleScores = new ArrayList<>();
//        for (PrdzonghexiaoshoufenVo prdzonghexiaoshoufenVo : getprdzonghexiaoshoufen) {
//            ProductSaleScore productSaleScore = new ProductSaleScore();
//            BigDecimal agentProductSaleScore = prdzonghexiaoshoufenVo.getAgentProductSaleScore();//个人本产品销售分
//            BigDecimal groupProductSaleScore = prdzonghexiaoshoufenVo.getGroupProductSaleScore();//所属群的本产品销售分
//            BigDecimal prdzonghexiaoshoufen=null;
//            if (groupProductSaleScore!=null&&agentProductSaleScore!=null){
//                 prdzonghexiaoshoufen = etlSerive.prdzonghexiaoshoufen(
//                         groupProductSaleScore, agentProductSaleScore,
//                         qunxiaoshoufenQZ, gerenxiaoshoufenQZ);
//
//            }
//            productSaleScore.setProductComprehensiveSaleScore(prdzonghexiaoshoufen);
//            productSaleScore.setAgentidAndOksaleproductid(prdzonghexiaoshoufenVo.getAgentId().toString()+prdzonghexiaoshoufenVo.getOksaleproductId().toString());
//            productSaleScore.setAgentId(prdzonghexiaoshoufenVo.getAgentId());
//            productSaleScore.setOksaleproductId(prdzonghexiaoshoufenVo.getOksaleproductId());
//            productSaleScore.setOksaleproductState(prdzonghexiaoshoufenVo.getOksaleproductState());
//            productSaleScore.setProductClass(prdzonghexiaoshoufenVo.getProductClass());
//            productSaleScores.add(productSaleScore);
//        }
//
//        productSaleScoreService.truncateProductSaleScore();
//            if (productSaleScoreService.saveBatch(productSaleScores)) {
//                log.info("--本产品综合销售分计算结束--1");
//            }
//
//
//
//
//
//
//        log.info("--开始计算本产品综合推荐分--");
//        //本产品综合销售分= 本产品综合主推分*主推分权重+本产品综合销售分*综合销售分权重
//        List<ZhuandsaleScoreConfig> list2 = zhuandsaleScoreConfigService.list();
//        if (list2.size()!=1){
//            return RetResponse.makeErrRsp("主推及销售擅长配置表信息有误,产品综合销售分计算失败");
//        }
//        ZhuandsaleScoreConfig zhuandsaleScoreConfig = list2.get(0);
//        BigDecimal productCombinedScore = zhuandsaleScoreConfig.getProductCombinedScore();//产品综合主推分权重
//        BigDecimal productComprehensiveSaleScore = zhuandsaleScoreConfig.getProductComprehensiveSaleScore();//产品综合销售分权重
//        List<PrdZongHeTuiJianFenVo> prdZongHeTuiJianFen = prdRecommProductDetailMapper.getPrdZongHeTuiJianFen();
//        ArrayList<ProductComprehensiveScore>  productComprehensiveScores= new ArrayList<>();
//        for (PrdZongHeTuiJianFenVo prdZongHeTuiJianFenVo : prdZongHeTuiJianFen) {
//            ProductComprehensiveScore productComprehensiveScore = new ProductComprehensiveScore();
//
//
//            BigDecimal productComprehensiveSaleScore1=null;
//            BigDecimal productCombinedScore1=null;
//
//             productCombinedScore1 = prdZongHeTuiJianFenVo.getProductCombinedScore();//产品综合主推分
//             productComprehensiveSaleScore1 = prdZongHeTuiJianFenVo.getProductComprehensiveSaleScore();//产品综合销售分
//            BigDecimal prdzonghexiaoshoufen=null;
//
//            if (productComprehensiveSaleScore1==null&&productCombinedScore1==null){
//                prdzonghexiaoshoufen=new BigDecimal(0);
//            }else if (productComprehensiveSaleScore1!=null&&productCombinedScore1==null){
//                productCombinedScore1=new BigDecimal(0);
//                prdzonghexiaoshoufen = etlSerive.prdzonghexiaoshoufen(productCombinedScore1, productComprehensiveSaleScore1, productCombinedScore, productComprehensiveSaleScore);
//            }else if (productComprehensiveSaleScore1==null&&productCombinedScore1!=null){
//                //如果产品综合销售分等于null,那么产品综合推荐分等于代理人个人产品销售分
//                String string = prdZongHeTuiJianFenVo.getAgentId().toString();
//                String string1 = prdZongHeTuiJianFenVo.getOksaleproductId().toString();
//                String dailirenIdAndChanpinId=string+string1;
//                AgentUserSaleDetail agentid_and_oksaleproductid = agentUserSaleDetailService.getOne(
//                        new QueryWrapper<AgentUserSaleDetail>().eq("agentid_and_oksaleproductid", dailirenIdAndChanpinId));
//                prdzonghexiaoshoufen=agentid_and_oksaleproductid.getAgentProductSaleScore();
//            }else if (productComprehensiveSaleScore1!=null&&productCombinedScore1!=null){
//                prdzonghexiaoshoufen = etlSerive.prdzonghexiaoshoufen(productCombinedScore1, productComprehensiveSaleScore1, productCombinedScore, productComprehensiveSaleScore);
//
//            }
//            productComprehensiveScore.setProductComprehensiveRecommendScore(prdzonghexiaoshoufen);
//            productComprehensiveScore.setAgentidAndOksaleproductid(prdZongHeTuiJianFenVo.getAgentId().toString()+prdZongHeTuiJianFenVo.getOksaleproductId().toString());
//            productComprehensiveScore.setAgentId(prdZongHeTuiJianFenVo.getAgentId());
//            productComprehensiveScore.setOksaleproductId(prdZongHeTuiJianFenVo.getOksaleproductId());
//            productComprehensiveScore.setOksaleproductState(prdZongHeTuiJianFenVo.getOksaleproductState());
//            productComprehensiveScore.setProductClass(prdZongHeTuiJianFenVo.getProductClass());
//            productComprehensiveScore.setAgentChannelCode(prdZongHeTuiJianFenVo.getChannelCode());
//            productComprehensiveScore.setAgentCompany(prdZongHeTuiJianFenVo.getCompanyCode());
//
//            productComprehensiveScores.add(productComprehensiveScore);
//        }
//        productComprehensiveScoreService.truncateProductComprehensiveScore();
//        if (productComprehensiveScoreService.saveBatch(productComprehensiveScores)) {
//            log.info("--本产品综合推荐分计算结束--1");
//        }
//        return RetResponse.makeOKRsp("跑数完成");
//    }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//    @ApiOperation(value = "测试1")
//    @PostMapping("/dailirenfenqunTest")
//    public List dailirengeren(){
//        List<AgentUserMaxandmin> genrenMaxAndMin = prdRecommProductDetailMapper.getGenrenMaxAndMin();
//        agentUserMaxandminMapper.saveList(genrenMaxAndMin);
//
//
//
//        return genrenMaxAndMin;
//
//
//
//    }



}

